package com.yswy.domain.vo.gld.filter;

import com.yswy.domain.vo.dto.DataBaseFilter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.StringUtils;

@Data
@EqualsAndHashCode(callSuper = true)
public class AppUserPageFilter extends DataBaseFilter {
    @ApiModelProperty("昵称|手机号 关键字查询")
    private String keyWord;
    @ApiModelProperty("渠道")
    private String channel;
    @ApiModelProperty("用户 昵称")
    private String nickName;
    @ApiModelProperty("用户手机")
    private String userPhone;
    @ApiModelProperty("时间类型 1:创建时间 2:活跃时间")
    private Integer timeType;
    @ApiModelProperty("是否黑名单 0:不是 1:是")
    private Integer isDel;
    @ApiModelProperty("是否白名单用户 0:不是 1:是")
    private Integer isWhiteUser;
    @ApiModelProperty("是否会员 0:不是 1:是")
    private Integer isMember;
    @ApiModelProperty("排序类型 0:默认 1:积分 2:金额")
    private Integer sortType;
    @ApiModelProperty("排序规则 0:默认 1:升序 2:降序")
    private Integer sortRule;
    public String getKeyWord() {
        return StringUtils.isNotEmpty(keyWord) ? keyWord.trim() : keyWord;
    }
}
